package Pattern.FactoryPattern.Example;

/**
 * @Author MJS
 * @Date 2021/8/4 10:20
 * @Description
 * 具体产品A类
 */
public class ProductA extends Product {
    private String name;
    private double money;

    public ProductA() {
    }

    public ProductA(String name, double money) {
        this.name = name;
        this.money = money;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }

    public void Show() {
        System.out.println("生产出了产品A:"+name+",他的价格："+money);
    }
}
